package javabean;

import java.math.BigDecimal;

public class Food {
    private Integer id;
    private String name;
    private String image = "pc/web_mycss/default.png";
    private Double cpp;
    private Integer ifPreferential;
    private Double preferentialPrice;
    private Integer ifOnSale;
    private Integer ifRecommend;
    private String introduction;
    private Integer categoryId;
    private Integer level;

    public Food() {
    }

    public Food(Integer id, String name, String image, Double cpp, Integer ifPreferential, Double preferentialPrice, Integer ifOnSale, Integer ifRecommend, String introduction, Integer categoryId, Integer level) {
        this.id = id;
        this.name = name;
        this.image = image;
        this.cpp = cpp;
        this.ifPreferential = ifPreferential;
        this.preferentialPrice = preferentialPrice;
        this.ifOnSale = ifOnSale;
        this.ifRecommend = ifRecommend;
        this.introduction = introduction;
        this.categoryId = categoryId;
        this.level = level;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Double getCpp() {
        return cpp;
    }

    public void setCpp(Double cpp) {
        this.cpp = cpp;
    }

    public Integer getIfPreferential() {
        return ifPreferential;
    }

    public void setIfPreferential(Integer ifPreferential) {
        this.ifPreferential = ifPreferential;
    }

    public Double getPreferentialPrice() {
        return preferentialPrice;
    }

    public void setPreferentialPrice(Double preferentialPrice) {
        this.preferentialPrice = preferentialPrice;
    }

    public Integer getIfOnSale() {
        return ifOnSale;
    }

    public void setIfOnSale(Integer ifOnSale) {
        this.ifOnSale = ifOnSale;
    }

    public Integer getIfRecommend() {
        return ifRecommend;
    }

    public void setIfRecommend(Integer ifRecommend) {
        this.ifRecommend = ifRecommend;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    @Override
    public String toString() {
        return "Food{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", image='" + image + '\'' +
                ", cpp=" + cpp +
                ", ifPreferential=" + ifPreferential +
                ", preferentialPrice=" + preferentialPrice +
                ", ifOnSale=" + ifOnSale +
                ", ifRecommend=" + ifRecommend +
                ", introduction='" + introduction + '\'' +
                ", categoryId=" + categoryId +
                ", level=" + level +
                '}';
    }
}
